﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Cms/Admin.Master" AutoEventWireup="true"
    CodeBehind="OrderMan.aspx.cs" Inherits="Aij1.Cms.OrderMan" %>

<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Xpo.v13.1.Web, Version=13.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Xpo" TagPrefix="dx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="PH" runat="server">
    <dx:ASPxGridView ID="ASPxGridView1" runat="server" AutoGenerateColumns="False" DataSourceID="XpoDataSource1"
        KeyFieldName="Oid" Width="100%">
        <Columns>
            <dx:GridViewCommandColumn ShowSelectCheckbox="True" VisibleIndex="0" Width="30px">
                <ClearFilterButton Visible="True">
                </ClearFilterButton>
            </dx:GridViewCommandColumn>
            <dx:GridViewDataTextColumn Caption="编号" FieldName="Oid" ReadOnly="True" VisibleIndex="1"
                Width="40px">
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn Caption="订单号" FieldName="OrderNo" VisibleIndex="2" Width="100px">
                <CellStyle HorizontalAlign="Center">
                </CellStyle>
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn Caption="客户Id" FieldName="CustomerId.SysName" VisibleIndex="3">
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataDateColumn Caption="下单时间" FieldName="OrderTime" VisibleIndex="4"
                Width="120px">
                <PropertiesDateEdit DisplayFormatString="yyyy-MM-dd HH:mm">
                </PropertiesDateEdit>
                <CellStyle HorizontalAlign="Center">
                </CellStyle>
            </dx:GridViewDataDateColumn>
            <dx:GridViewDataTextColumn Caption="应付" FieldName="Payable" VisibleIndex="5">
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn Caption="实付" FieldName="Netpay" VisibleIndex="6">
            </dx:GridViewDataTextColumn>
            <dx:GridViewCommandColumn Caption="操作" VisibleIndex="8" Width="120px">
                <EditButton Text="编辑" Visible="True">
                </EditButton>
                <NewButton Text="新建">
                </NewButton>
                <DeleteButton Text="删除" Visible="True">
                </DeleteButton>
                <CancelButton Text="取消" Visible="True">
                </CancelButton>
            </dx:GridViewCommandColumn>
            <dx:GridViewDataTextColumn Caption="状态" FieldName="Progress" VisibleIndex="7" Width="100px">
            </dx:GridViewDataTextColumn>
        </Columns>
        <SettingsBehavior ConfirmDelete="True" EnableRowHotTrack="True" />
        <SettingsPager PageSize="20">
        </SettingsPager>
        <Templates>
            <DetailRow>
                <dx:ASPxGridView ID="detailGrid" runat="server" KeyFieldName="Oid" DataSourceID="XpoDataSource2"
                    Width="100%" OnBeforePerformDataSelect="detailGrid_DataSelect">
                    <Columns>
                        <dx:GridViewDataColumn FieldName="Oid" Caption="编号" VisibleIndex="1" />
                        <dx:GridViewDataColumn FieldName="SeriesId.Title" Caption="商品名称" VisibleIndex="2" />
                        <dx:GridViewDataColumn FieldName="Count" Caption="数量" VisibleIndex="3" />
                        <dx:GridViewDataDateColumn FieldName="Price" Caption="单价" VisibleIndex="4" />
                    </Columns>
                </dx:ASPxGridView>
            </DetailRow>
        </Templates>
        <SettingsDetail ShowDetailRow="True" />
    </dx:ASPxGridView>
    <dx:XpoDataSource ID="XpoDataSource1" runat="server" DefaultSorting="Oid DESC" TypeName="Aij1.Model.B_Order">
    </dx:XpoDataSource>
    <dx:XpoDataSource ID="XpoDataSource2" runat="server" DefaultSorting="Oid" TypeName="Aij1.Model.B_OrderItem">
    </dx:XpoDataSource>
</asp:Content>
